@forelse($orders as $order)
<tr>
	<td>{{$loop->index + 1}}</td>
	<td>{{$order->order_id}}</td>
	<td>{{$order->products}}</td>
	<td>{{$order->contacts}}</td>
	<td>{{$order->phone}}</td>
	<td>{{$order->created_at}}</td>
	<td>{{$order->status ? '已发货': '待发货'}}</td>
	<td><a href="{{ route('sendOrder.detail',['id'=>$order->id]) }}">
		@if($order->status)
		查看详情
		@else
		<font color="red">立即发货</font>
		@endif
	</a></td>
</tr>
@empty
<tr class="no_data_tr"><td colspan="9"><span class="more">当前暂无待处理订单</span></td></tr>
@endforelse

<script type="text/javascript">
	Page({
		num:{{$pageNums}},				 	 //页码数
		startnum:{{$page}}, 			 //指定页码
		elem:$('#page1'),		 //指定的元素
		callback:function(n){	 //回调函数
			params['pageSize'] = $('.page_num').find('.active').text();
			params['page'] = n;
			getList(bascUrl,params);
		}
	});
	$('#sendOrderNum').html("{{$nums['sendOrderNum']}}");
	$('#orderNum').html("{{$nums['orderNum']}}");
</script>